Client Side Template

{[count]}

Description

Zero-based row number for the current row.

The special {[count]} tag is used to count the number of rows. {[count]} is a zero-based counter for the number of rows. A zero-based row number is used with most List object methods and many UX Component methods, such as listObj.rowExpander.

{
    employees: [
            {firstname: 'Fred', lastname: 'Smith', skills: 'Javascript'},
            {firstname: 'Laura', lastname: 'Linneker', skills:'Xbasic'},
            {firstname: 'Jim', lastname: 'York', skills:'Fortran'}
        ]
}

You could use 'count' in this template to display the zero-based row number for each record.

{employees}
{[count]} {firstname} {lastname}<br>
{/employees}

The result:

0 Fred Smith
1 Laura Linneker
2 Jim York